package com.cskaoyan.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author stone
 * @date 2022/03/24 15:57
 */
@RestController
@RequestMapping("array")
public class ArrayController {

    //localhost:8080/array/register?ids=1&ids=2&ids=4
    @RequestMapping("register")
    public String register(Integer[] ids) {
        return "success";
    }
    //localhost:8080/register2?hobbys=sing&hobbys=dance&hobbys=rap   → String[] hobbys

}
